package com.mylogistics.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mylogistics.pojo.User;
import lombok.Setter;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    //按照用户名查询
    @Select("select * from user where username = #{username}")
    User getUserByUserName(@Param("username") String userName);
}
